package com.ywjg.dao;
import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;

import com.ywjg.model.GoodFavorite;
public interface GoodFavoriteDao extends  PagingAndSortingRepository<GoodFavorite,Integer>{
	
	List<GoodFavorite> findByUserId(int id,Pageable pageable);
	
	GoodFavorite findBygoodId(int id);
	
	GoodFavorite findByGoodIdAndUserId(int goodId,int userId);
	
	
}

